import { ElMessageBox } from 'element-plus'

//动态弹窗
function confirm (msg,type){
   return ElMessageBox.confirm(
      msg,
      type,
      {
        confirmButtonText: 'OK',
        cancelButtonText: 'Cancel',
        type: 'warning',
      }
    )
  }

export default {
    confirm
}